#include "TcpClient.hpp"
#include <memory>

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cerr << "Usage: " << argv[0] << " server-ip server-port" << std::endl;
        exit(1);
    }

    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);
    
    std::unique_ptr<TcpClient> tsvr = std::make_unique<TcpClient>(ip, port);// C==14
    tsvr->InitClient();
    tsvr->StartClient();
    return 0;
}